import {createRouter, createWebHistory, RouteRecordRaw} from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Login',
    component: () => import('../components/Login.vue')
    },
    {
        path: '/Invest',
        name: 'Invest',
        component: () => import('../components/Invest.vue')
    },
    {
        path: '/UserInvest',
        name: 'UserInvest',
        component: () => import('../components/UserInvest.vue')     
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
